from django.http import JsonResponse
from django.shortcuts import render


# Create your views here.

def login(request):
    print(type(request.method))
    if request.method == "GET":
        return render(request, template_name="login.html")
    if request.method == "POST":
        print(request.POST)
        return JsonResponse({"name": 123})
    print(request.method)
    print(dir(request))
    # print(request.post)
